package com.travel.modules.asset.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.travel.commons.utils.PageUtils;
import com.travel.commons.utils.Query;
import com.travel.commons.utils.SnowNoGenerator;
import com.travel.modules.asset.dao.ScenicAreaDao;
import com.travel.modules.asset.dto.ParentScenicArea;
import com.travel.modules.asset.dto.ScenicAreaQueryDTO;
import com.travel.modules.asset.entity.ScenicArea;
import com.travel.modules.asset.service.ScenicAreaService;
import org.apache.commons.lang.StringUtils;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Service("scenicAreaService")
public class ScenicAreaServiceImpl extends ServiceImpl<ScenicAreaDao, ScenicArea> implements ScenicAreaService {
    @Resource
    private ScenicAreaDao scenicAreaDao;

    @Override
    public List<ScenicArea> hotScenicAreas() {
        return scenicAreaDao.getHotScenicAreas();
    }

    @Override
    public List<ScenicArea> ftQueryAreas(String[] keywords) {
        return scenicAreaDao.ftQueryAreas(keywords);
    }

    @Override
    public List<ScenicArea> getAllScenicArea(Map<String, Object> params) {
        return scenicAreaDao.getAllScenicArea(params);
    }

    @Override
    public List<ParentScenicArea> getParentArea() {
        return scenicAreaDao.getParentArea();
    }

    @Override
    public ScenicArea getOneScenicArea(String areaId) {
        return scenicAreaDao.getOneScenicArea(areaId);
    }
}
